package com.huluobo.a2207kotlindouyin.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2207kotlindouyin.R
import com.huluobo.a2207kotlindouyin.utls.ImageUtils
import com.huluobo.base.bean.GiftBean

/**
 *  Created by LC on 2024/12/2.
 */
class GiftAdapter : BaseQuickAdapter<GiftBean, BaseViewHolder>(R.layout.item_gift) {
    override fun convert(holder: BaseViewHolder, item: GiftBean) {
        ImageUtils.loadImage(context, item.giftpath, holder.getView(R.id.item_gift_icon_iv))
        holder.setText(R.id.item_gift_price_tv, "${item.price}抖币")
    }
}